﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.ComponentModel;
using System.Collections.ObjectModel;
using System.Xml.Linq;
using System.Linq;

namespace FXC.SL.CS.Modal
{
    public class InstantMarketQuote : INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged;

        private bool _trend;
        private decimal _sellPrice;
        private decimal _buyPrice;
        private string _productName;
        private bool _isRise;

        public bool Trend
        {
            get
            {
                return _trend;
            }
            set
            {
                _trend = value;
                if (PropertyChanged != null)
                {
                    PropertyChanged(this, new PropertyChangedEventArgs("Trend"));
                }
            }
        }

        public string ProductName
        {
            get { return _productName; }
            set
            {
                _productName = value;
                if (PropertyChanged != null)
                {
                    PropertyChanged(this, new PropertyChangedEventArgs("ProductName"));
                }
            }
        }

        public decimal SellPrice
        {
            get { return _sellPrice; }
            set
            {
                _sellPrice = value;
                if (PropertyChanged != null)
                {
                    PropertyChanged(this, new PropertyChangedEventArgs("SellPrice"));
                }
            }
        }

        public decimal BuyPrice
        {
            get { return _buyPrice; }
            set
            {
                _buyPrice = value;
                if (PropertyChanged != null)
                {
                    PropertyChanged(this, new PropertyChangedEventArgs("BuyPrice"));
                }
            }
        }

        public bool IsRise
        {
            get { return _isRise; }
            set
            {
                _isRise = value;
                if (PropertyChanged != null)
                {
                    PropertyChanged(this, new PropertyChangedEventArgs("IsRise"));
                }
            }
        }
    }
}
